﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Configuration;

namespace PassportManage
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            WFNetLib.ADO.DBCommonOP.DataBaseType = WFNetLib.ADO.DBType.SQL;
            WFNetLib.Log.SystemLogData.DBConnectionString = ConfigurationManager.ConnectionStrings["LocalSqlConnection"].ToString();
            //WFNetLib.Log.LogSQL.staticCallback = new WFNetLib.Log.LogSQL.InserLogCallback(BLL.LogOP.InserLogCallback);
            WFNetLib.ADO.SQLServerOP.ConnectionString = ConfigurationManager.ConnectionStrings["LocalSqlConnection"].ToString();
            //WFNetLib.Log.Form_LogShow_AllConditon.staticGetLogTypeCallback = new WFNetLib.Log.LogInfo.GetLogTypeCallback(Callback.GetLogTypeCallback);
            //WFNetLib.Log.Form_LogShow_AllConditon.staticGetOperatorCallback = new WFNetLib.Log.LogInfo.GetOperatorCallback(Callback.GetOperatorCallback);
            //WFNetLib.Log.Form_LogShow_AllConditon.staticShowLogTypeCallback = new WFNetLib.Log.LogInfo.ShowLogTypeCallback(Callback.ShowOperatorCallback);
            //WFNetLib.Log.LogInfo.CurLogType = typeof(Common.LogType);
            //ConfigurationManager.ConnectionStrings["LocalSqlConnection"].ConnectionString = "100";
            Application.Run(new Form_Loading());
            //Application.Run(new Form_Main("wangf",null));
        }
    }
}
